// Thank you for tuning into 2004 Sundance // Core Code 1 campaignTrail_temp.election_json = JSON.parse("[{\"model\": \"campaign_trail.election\", \"pk\": 9, \"fields\": {\"year\": 2004, \"summary\": \"

Al Gore narrowly won the Presidency by promising proven leadership in a campaign focused mainly on kitchen-table issues. After America was attacked on September 11th, he was forced to step up to the task of defending the free world.

As Gore runs for re-election, he faces former New York mayor Rudy Giuliani, who seeks to undercut him on national security issues. Neither candidate starts out favored; Gore must fend off right-wing attacks, while a long primary campaign leaves Giuliani vulnerable to scrutiny over his character flaws.

\", \"image_url\": \"https://i.imgur.com/1paPzgh.png\", \"winning_electoral_vote_number\": 270, \"advisor_url\": \"https://i.imgur.com/pXgrErf.png\", \"site_description\": \"After America was attacked on September 11th, President Al Gore was forced to step up to the task of defending the free world. As he runs for re-election, he faces former New York mayor Rudy Giuliani, who seeks to undercut him on national security issues. Gore must fend off right-wing attacks, while a long primary campaign leaves Giuliani vulnerable to scrutiny over his character flaws.\", \"recommended_reading\": \"

Sources

Events

Maps

Credits

Biographies and Election Books

David Maraniss – The Prince of Tennessee
Stephen Singular – Joe Lieberman: The Historic Choice
Andrew Kirtzman – Giuliani: The Rise and Tragic Fall
Wayne Barrett – Rudy!: An Investigative Biography
Jeffrey Toobin – Too Close to Call

Online Resources

CNN America Votes 2004 (Home - Issues)
P2004 (Home - Candidates - Primaries - Conventions)
Background Articles (1, 2, 3, 4, 5, 6)
2002 and 2004 Coverage (Crystal Ball - Politics1)

After the attacks on September 11th, President Gore was forced to step up to his role as the leader of the free world. He invaded Afghanistan, seeking to catch Al‑Qaeda kingpin Osama bin Laden. With much of America by his side -- as evidenced by his sky-high approval ratings -- Gore regained both houses of Congress in 2002, and was able to pass legislation like education reform and a Patients' Bill of Rights.

Republicans, meanwhile, remained eager to retake the Presidency from a man they saw as an aloof tree-hugger. Many challengers emerged. Mayor Rudy Giuliani was the frontrunner ever since 9/11, but his glaring character flaws provided an opening, and others joined in: Sen. Lugar, playing elder statesman; Sen. McCain and Gen. McChrystal, playing soldier; and Joe Scarborough, playing aspiring Fox anchor. Sen. Maj. Leader Trent Lott was Rudy's most effective challenger, rallying the right of the party around him, but after McCain endorsed Giuliani, and his praise for Strom Thurmond came to light, even he faltered.

Bruised heavily by the primary campaign, Mayor Rudy nonetheless marched on, consistently taking the challenge to President Gore. Despite lagging in fundraising, Giuliani surged ahead with a confident debate performance. Gore fought back with pointed negative ads, seeking to highlight Rudy's flaws and flip-flops. Ultimately the outside groups did Giuliani in, as he faced flaming attack ads over his treatment of 9/11 first responders. Gore took the high road, but the bad press was enough for him to win. Hopefully the next 4 years will make for smoother sailing...

Republican National Convention
July 26–29, Miami, FL

Democratic National Convention
Aug 30–Sep 2, St. Louis, MO

Republican Primary
Giuliani
| Lott | McCain | McChrystal

Presidential Election
Click for county map

The Sundance Team

/u/astrohunch_o – Executive producer, coder, editor, chief designer

/u/StockdaleforTCT – Al Gore lead, Democratic lead

/u/neo1013 – Rudy Giuliani lead, Republican lead


Special thanks to our playtesters – Ted Thing, Lurker, Kaiserlink, martha, duplicator, FlongydOlson, Verbluffen, Edwin Edwards, Sami, Tex, and myrkwise – for their invaluable feedback.

This is dedicated to... the love of the game, as always

\", \"has_visits\": 1, \"no_electoral_majority_image\": \"https://i.imgur.com/dRZ1A9l.png\"}}]"); campaignTrail_temp.candidate_json = JSON.parse("[{\"model\": \"campaign_trail.candidate\", \"pk\": 78, \"fields\": {\"first_name\": \"Al\", \"last_name\": \"Gore\", \"election\": 9, \"party\": \"Democrat\", \"state\": \"Tennessee\", \"priority\": 1, \"description\": \"

Al Gore became President after winning Florida by 2,200 votes. At first, his tenure promised the same gridlock that plagued his former boss. But when America was attacked on September 11th, he had no option but to defend his country from terror. Since then, he has toppled the Taliban government in Afghanistan while passing key reforms at home. His mandate also grew stronger, as his party regained both chambers of Congress.

Despite this, he still faces a tough fight for re-election. The economy is slacking, with oil prices high, and the millions that still see him as a wonky liberal out of touch with Middle America have found a champion in Rudy Giuliani. Gore must fend off attacks from him, and a GOP machine still reeling from 2000, to lead the free world for four more years.

\", \"color_hex\": \"#235DBA\", \"secondary_color_hex\": \"#7FB2FF\", \"is_active\": 1, \"image_url\": \"https://i.imgur.com/N7MPAvU.png\", \"electoral_victory_message\": \"

Congratulations! You have won the 2000 election.

Though it was perhaps expected, you could have easily faltered at a number of points. Credit to you for pulling through.

On the political front, you can continue the Clinton legacy and strengthen Social Security for generations to come. Perhaps you can succeed on health care where Clinton came up short? Or maybe you can create a future of renewable energy for America. Just be wary of a (George or Jeb?) Bush challenge in 2004.

\", \"electoral_loss_message\": \"

Sorry! You have lost the 2000 election.

Surely the second-guessing will be intense, but if things were close you could probably run again in 2004.

It seems that with George W. Bush and a Republican majority, the United States can expect some conservative policy-making over the next four years. Hopefully Bush comes through on his promise to govern in a bipartisan, conciliatory manner. A lot should depend on the margin of his victory, and whether it was large or small.

\", \"no_electoral_majority_message\": \"

Sorry! You have lost in a squeaker.

No candidate achieved a majority of the electoral votes, for the first time since 1824. Unfortunately for you, a majority of states have Republican controlled congressional delegations.

It seems that with George W. Bush and a Republican majority, the United States can expect some conservative policy-making over the next four years. Hopefully Bush comes through on his promise to govern in a bipartisan, conciliatory manner.

\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 77, \"fields\": {\"first_name\": \"Rudy\", \"last_name\": \"Giuliani\", \"election\": 9, \"party\": \"Republican\", \"state\": \"New York\", \"priority\": 2, \"description\": \"

Rudy Giuliani is the internationally beloved former Mayor of New York City. After a contentious two terms in office, Rudy was given a chance at redemption as his city was sent reeling from September 11th. His actions after the terrorist attacks immediately made Giuliani the early frontrunner for the Republican nomination in 2004.

Enduring a far tougher fight than he expected, the former mayor comes out of the primary burned hard by Senators Lott and McCain; with his personal life and past positions deliberated on, many wonder if he has what it takes to beat President Gore. Giuliani must hold together his wide net of supporters while expanding it to disaffected conservatives and undecided voters. If he can, America's Mayor may become its President.

\", \"color_hex\": \"#BC2323\", \"secondary_color_hex\": \"#FF7F7F\", \"is_active\": 1, \"image_url\": \"https://i.imgur.com/Koo664I.png\", \"electoral_victory_message\": \"

Congratulations! You have won the 2000 election.

Confounding the predictions of many experts, you were able to turn the tables on Al Gore, in spite of the economy and Clinton's popularity.

On the political front, you can push for tax cuts to spur the economy and return the budget surplus to the American people. You might also pursue education and immigration reform, individual Social Security accounts, and new laws to defend the family and the sanctity of life.

\", \"electoral_loss_message\": \"

Sorry! You have lost the 2000 election.

Perhaps it was always a long-shot, with the Democrats in such a commanding position after eight years of Bill Clinton. In any case, at least you are still the Governor of Texas.

Expect Al Gore to unleash a new round of government programs and environmental regulations. You are still youngish, however. If the election was close this time, perhaps you can run again in 2004, or work on behalf your brother Jeb.

\", \"no_electoral_majority_message\": \"

Wow! You have won in a squeaker.

No candidate achieved a majority of the electoral votes, marking the first time this has happened since 1824. Fortunately for you, the majority of U.S. states have Republican controlled congressional delegations, and they will cast their votes accordingly.

Given the incredibly close nature of the election, you will surely be expected to govern as a moderate, conciliatory President. Right??

\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 79, \"fields\": {\"first_name\": \"Ralph\", \"last_name\": \"Nader/Others\", \"election\": 9, \"party\": \"Green\", \"state\": \"Connecticut\", \"priority\": 3, \"description\": \"'\", \"color_hex\": \"#1C9573\", \"secondary_color_hex\": \"#64C9AD\", \"is_active\": 0, \"image_url\": \"'\", \"electoral_victory_message\": \"'\", \"electoral_loss_message\": \"'\", \"no_electoral_majority_message\": \"'\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 80, \"fields\": {\"first_name\": \"Roy\", \"last_name\": \"Moore\", \"election\": 9, \"party\": \"Constitution\", \"state\": \"Alabama\", \"priority\": 4, \"description\": \"''\", \"color_hex\": \"#6D6282\", \"secondary_color_hex\": \"#B6A4D8\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 1.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 85, \"fields\": {\"first_name\": \"Joe\", \"last_name\": \"Lieberman\", \"election\": 9, \"party\": \"Democrat\", \"state\": \"Connecticut\", \"priority\": 5, \"description\": \"''\", \"color_hex\": \"#0000FF\", \"secondary_color_hex\": \"#90C0FF\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/lRQJfTt.png\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Joe Lieberman is Gore's current Vice President. A Senator from Connecticut for many years, Lieberman has served well in his new role, defending his boss whenever he can while keeping moderates and Jewish voters in the Gore coalition. Without his support, Florida certainly would have been lost in 2000, and that's reason enough to keep him.

Lieberman, however, has seemed frustrated as of late. He has positioned himself on the hawkish side of debates over Iraq and Israel, earning the ire of Secretary of State Mitchell and dividing the cabinet. Lieberman is electorally invaluable, but Gore must tread carefully to ensure tensions with his number two don't boil over onto the trail.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 81, \"fields\": {\"first_name\": \"Rick\", \"last_name\": \"Santorum\", \"election\": 9, \"party\": \"Republican\", \"state\": \"Pennsylvania\", \"priority\": 6, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/nOLdRsA.png\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Rick Santorum is the boyish-looking Junior Senator from Pennsylvania. A strong evangelical conservative, he is known for his outspoken views on homosexuality and abortion; he even recently passed a partial-birth abortion ban through Congress, which President Gore vetoed.

Still folksy, despite spending over a decade in Congress, some feel he could offer well-needed balance to Giuliani's ticket, given the bitter scrutiny he faced during the primaries over his past on abortion and gun control. Santorum could certainly keep conservatives in Giuliani's \\\"wide net\\\" coalition, but there are concerns that his rhetoric could hold him back on the trail.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 82, \"fields\": {\"first_name\": \"Bill\", \"last_name\": \"Frist\", \"election\": 9, \"party\": \"Republican\", \"state\": \"Tennessee\", \"priority\": 7, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/E3YLxGR.png\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Bill Frist is the Senior Senator from Tennessee. A former heart surgeon, he has so far been a strong ally to Senator Lott and Republican leadership, without taking risks that may damage or boost his standing. That could serve Giuliani well; he doesn't elicit the same reaction on the right that other men on his shortlist do, but it's hoped he holds sway with moderately conservative voters.

With Giuliani's advisors betting on building a broad coalition to beat Al Gore, Frist is viewed as an ideal, if inoffensive, partner. Picking him would also boost Giuliani in the President's home state of Tennessee, which is likely to be an important battleground in the fall campaign.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 83, \"fields\": {\"first_name\": \"Orrin\", \"last_name\": \"Hatch\", \"election\": 9, \"party\": \"Republican\", \"state\": \"Utah\", \"priority\": 8, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/kY3Uz1o.png\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

Orrin Hatch has served as Senator for Utah for 26 years. In that time, he has cemented himself as one of the most vocal conservatives in the halls of Congress. Considered among the hardest-working members of the Senate, Hatch has worked tirelessly toward his ultimate goal of getting right-wing legislation passed and conservative judges confirmed, and his dealings in legislative affairs could soothe fears that Mayor Giuliani can't pass policy.

Senator Hatch would bring the right back into the fold; that said, he could not drive anywhere near the enthusiasm that a more youthful face may be able to. Regardless, he could cool tensions between Giuliani and Senators McCain and Lott without much trouble.

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 84, \"fields\": {\"first_name\": \"J.C.\", \"last_name\": \"Watts\", \"election\": 9, \"party\": \"Republican\", \"state\": \"Oklahoma\", \"priority\": 9, \"description\": \"''\", \"color_hex\": \"#FF0000\", \"secondary_color_hex\": \"#FFA0A0\", \"is_active\": 0, \"image_url\": \"https://i.imgur.com/5uD4Nb1.png\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"

J.C. Watts is the Chairman of the House Republican Conference, and has served in Congress since the \\\"Republican Revolution\\\" of 1994. A team player since his football days, Watts is a strong conservative and has been a frequent critic of the Gore administration over the last four years. His firm stance on a myriad of social issues would more than make up for Giuliani's history of switching positions.

If selected, Watts would make history as the first African-American on a major party ticket; this is as likely to bring minority voters onboard as it is to offload rural \\\"rednecks\\\" to spoiler candidates like Roy Moore. He would also not bring much experience to the ticket, and some feel he may allow Gore to play up the so-called \\\"celebrity angle.\\\"

\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 89, \"fields\": {\"first_name\": \"Peter\", \"last_name\": \"Camejo\", \"election\": 9, \"party\": \"Green\", \"state\": \"California\", \"priority\": 10, \"description\": \"''\", \"color_hex\": \"#00C100\", \"secondary_color_hex\": \"#A1FFA1\", \"is_active\": 0, \"image_url\": \"'\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"'\", \"candidate_score\": 0.0}}, {\"model\": \"campaign_trail.candidate\", \"pk\": 90, \"fields\": {\"first_name\": \"Michael\", \"last_name\": \"Peroutka\", \"election\": 9, \"party\": \"Constitution\", \"state\": \"Maryland\", \"priority\": 11, \"description\": \"''\", \"color_hex\": \"#FFFF00\", \"secondary_color_hex\": \"#FFFFC0\", \"is_active\": 0, \"image_url\": \"''\", \"electoral_victory_message\": \"''\", \"electoral_loss_message\": \"''\", \"no_electoral_majority_message\": \"''\", \"description_as_running_mate\": \"''\", \"candidate_score\": 0.0}}]"); campaignTrail_temp.running_mate_json = JSON.parse("[{\"model\": \"campaign_trail.running_mate\", \"pk\": 48, \"fields\": {\"candidate\": 77, \"running_mate\": 81}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 52, \"fields\": {\"candidate\": 78, \"running_mate\": 85}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 49, \"fields\": {\"candidate\": 77, \"running_mate\": 82}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 50, \"fields\": {\"candidate\": 77, \"running_mate\": 83}}, {\"model\": \"campaign_trail.running_mate\", \"pk\": 51, \"fields\": {\"candidate\": 77, \"running_mate\": 84}}]"); campaignTrail_temp.opponents_default_json = JSON.parse("[{\"election\": 9, \"candidates\": [77, 78, 79, 80]}]"); campaignTrail_temp.opponents_weighted_json = JSON.parse("[{\"election\": 9, \"candidates\": [78, 77, 79, 80]}]"); campaignTrail_temp.difficulty_level_json = JSON.parse("[{\"model\": \"campaign_trail.difficulty_level\", \"pk\": 1, \"fields\": {\"name\": \"Easy\", \"multiplier\": 1.1}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 3, \"fields\": {\"name\": \"Normal\", \"multiplier\": 0.97}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 4, \"fields\": {\"name\": \"Hard\", \"multiplier\": 0.95}}, {\"model\": \"campaign_trail.difficulty_level\", \"pk\": 5, \"fields\": {\"name\": \"Impossible\", \"multiplier\": 0.9}}]"); campaignTrail_temp.global_parameter_json = JSON.parse("[{\"model\": \"campaign_trail.global_parameter\", \"pk\": 1, \"fields\": {\"vote_variable\": 1.125, \"max_swing\": 0.12, \"start_point\": 0.94, \"candidate_issue_weight\": 10.0, \"running_mate_issue_weight\": 3.0, \"issue_stance_1_max\": -0.71, \"issue_stance_2_max\": -0.3, \"issue_stance_3_max\": -0.125, \"issue_stance_4_max\": 0.125, \"issue_stance_5_max\": 0.3, \"issue_stance_6_max\": 0.71, \"global_variance\": 0.01, \"state_variance\": 0.005, \"question_count\": 25, \"default_map_color_hex\": \"#C9C9C9\", \"no_state_map_color_hex\": \"#999999\"}}]"); campaignTrail_temp.temp_election_list = [{"id": 9, "year": 2004, "is_premium": 0, "display_year": "2004Sundance"}]; campaignTrail_temp.show_premium = true; campaignTrail_temp.premier_ab_test_version = -1; /* (_) <___> | |______ | |* * * ) | | * * (_________ | |* * * |* *|####) | | * * *| * | (________________ | |* * * |* *|####|##############| | | * * *| * | | | | |* * * |* *|####|##############| | |~~~~~~| * | | | | |######|* *|####|##############| | | |~~~' | | | |######|########|##############| | | | | | | |######|########|##############| | |~~~~~~| | | | | |########|##############| | | '~~~~~~~~| | | | |##############| | | '~~~~~~~~~~~~~~~ | | | | | | */ // ALL the styling, custom rules, additional stuff is here // WELCOME...this is meant to be read and picked apart // Just remember to play the mod first! :) // Startup chime if (!campaignTrail_temp.chime) { var music = new Audio('https://files.catbox.moe/scpbbd.ogg'); music.loop = false; music.volume = 0.5; music.play(); campaignTrail_temp.chime = true; } // Styling $("#dynamic-favicon").attr("href","https://i.imgur.com/WEOEq1V.png"); document.body.background = "https://i.imgur.com/Dz6LJNI.png"; document.getElementById("header").src = "https://i.imgur.com/6EFIDQo.png"; // blank header document.getElementById("header").src = "https://i.imgur.com/kVaoVTB.png"; corrr=``; $("#game_window")[0].style.border = "0"; $("#game_window")[0].style.boxShadow = "rgba(0, 0, 0, 0.7) 0px 10px 15px"; document.getElementsByClassName("game_header")[0].style.height = "auto"; nct_stuff.themes[nct_stuff.selectedTheme].coloring_title = "#00000000"; nct_stuff.themes[nct_stuff.selectedTheme].coloring_window = "#fff"; nct_stuff.themes[nct_stuff.selectedTheme].background_cover = false; nct_stuff.themes[nct_stuff.selectedTheme].window_url = ""; nct_stuff.themes[nct_stuff.selectedTheme].map_url = ""; nct_stuff.themes[nct_stuff.selectedTheme].text_col = "black" document.getElementById("music_player").style.display = "none"; $("#game_window")[0].style.backgroundColor = "#fff"; document.getElementsByClassName("game_header")[0].style.backgroundColor = nct_stuff.themes[nct_stuff.selectedTheme].coloring_title $(".footer a").css({"color":"#00e"}); $("#site_credits a").css({"color":"#00e"}); $(".container")[0].style.backgroundColor = "#fff"; $(".container")[0].style.backgroundImage = "url('https://i.imgur.com/DTpfZDE.png')"; $(".container")[0].style.padding = "0em"; $(".container")[0].style.border = "1px solid #00000055"; $(".container")[0].style.color = "#000"; $(".container")[0].style.width = "100em"; $(".content_single")[0].style.padding = "0px 0.723em 1em"; // Custom styling rules // Keeps game window constrained and changes look of many game elements document.styleSheets[0].insertRule(".game_header{ height:auto !important; border-style: none !important;}", 0); document.styleSheets[0].insertRule(".inner_window_question{ height:23.4em !important;}", 0); document.styleSheets[0].insertRule(".inner_window_w_desc{ height:36.9em !important;}", 0); document.styleSheets[0].insertRule("#candidate_pic{ height:12.6em !important;}", 0); document.styleSheets[0].insertRule("#running_mate_pic{ height:12.6em !important;}", 0); document.styleSheets[0].insertRule(".inner_window_sign_display{ height:12.6em !important;}", 0); document.styleSheets[0].insertRule("#main_content_area{ height:34.2em !important;}", 0); document.styleSheets[0].insertRule("#menu_container{ background-color:#fff !important;}", 0); document.styleSheets[0].insertRule("#overall_result_container{ background-color:#fff !important;}", 0); document.styleSheets[0].insertRule("#overall_result{ background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;}", 0); document.styleSheets[0].insertRule("#state_info{ background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;}", 0); document.styleSheets[0].insertRule("#state_result{ background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;}", 0); document.styleSheets[0].insertRule("#state_result_container{ background-color:#fff !important;}", 0); document.styleSheets[0].insertRule("#game_window{ height:41em !important;}", 0); document.styleSheets[0].insertRule("#map_container{ background-color:#eef !important; background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;}", 0); document.styleSheets[0].insertRule(".inner_window_question h3{ background-image:linear-gradient(rgba(255, 255, 255, 0.85), transparent 50%), linear-gradient(rgba(255, 255, 255, 0.25) 50%, transparent 50%), linear-gradient(rgb(210, 210, 210), rgb(245, 245, 245)) !important;}", 0); document.styleSheets[0].insertRule("#overall_result h3{ background-image:linear-gradient(rgba(255, 255, 255, 0.85), transparent 8px), linear-gradient(rgba(255, 255, 255, 0.25) 8px, transparent 8px), linear-gradient(rgb(214, 214, 214), rgb(255, 255, 255)) !important; margin-bottom: -0.1em !important; padding: 0.1em !important;}", 0); document.styleSheets[0].insertRule("#state_info h3{ background-image:linear-gradient(rgba(255, 255, 255, 0.85), transparent 8px), linear-gradient(rgba(255, 255, 255, 0.25) 8px, transparent 8px), linear-gradient(rgb(214, 214, 214), rgb(255, 255, 255)) !important;}", 0); document.styleSheets[0].insertRule("#state_result h3{ background-image:linear-gradient(rgba(255, 255, 255, 0.85), transparent 8px), linear-gradient(rgba(255, 255, 255, 0.25) 8px, transparent 8px), linear-gradient(rgb(214, 214, 214), rgb(255, 255, 255)) !important;}", 0); // Custom tables document.styleSheets[0].insertRule("#main_content_area table {border: 1px solid #B2B2B2 !important; background-image: url('https://i.imgur.com/ovfOboq.png') !important; border-spacing: 0 !important;}", 0); document.styleSheets[0].insertRule("#main_content_area td {border: solid #ffffff00 !important; border-width: 1px !important;}", 0); document.styleSheets[0].insertRule("#main_content_area th {border-bottom: 1px solid #B2B2B2 !important; border-right: 1px solid #B2B2B2 !important; border-top: 0 !important; border-left: 0 !important; background-image: linear-gradient(rgba(255, 255, 255, 0.85), transparent 8px), linear-gradient(rgba(255, 255, 255, 0.25) 8px, transparent 8px), linear-gradient(rgb(214, 214, 214), rgb(255, 255, 255)) !important; font-size: 92.5% !important;}", 0); document.styleSheets[0].insertRule("#main_content_area tr th:last-child {border-right: 0 !important;}", 0); // More custom styling document.styleSheets[0].insertRule("#overall_election_details a, #recommended_reading_box a {color: #00e;}", 0); document.styleSheets[0].insertRule("#map_footer {margin-top:1em !important;}", 0); document.styleSheets[0].insertRule(".election_description_window {background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;", 0); document.styleSheets[0].insertRule(".person_description_window {background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;", 0); document.styleSheets[0].insertRule(".inner_window_front {background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;", 0); document.styleSheets[0].insertRule(".inner_window_question {background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;", 0); document.styleSheets[0].insertRule(".inner_window_sign_display {background-image: url('https://i.imgur.com/Dz6LJNI.png') !important;", 0); document.styleSheets[0].insertRule("#campaign_sign {background-color: rgb(10,49,97) !important; border-color: rgb(179,25,66) !important;", 0); document.styleSheets[0].insertRule(".inner_window_w_desc {border-color: white !important;", 0); document.styleSheets[0].insertRule(".overlay {top:23px !important;", 0); // Custom advisor feedback document.styleSheets[0].insertRule("@keyframes show {100% {transform: translateY(-0%);}}", 0); document.styleSheets[0].insertRule(".overlay_window { border: none !important; top: 23px !important; box-shadow: rgba(0, 0, 0, 0.7) 0px 10px 15px; background: none !important; transform: translateY(-110%); animation: show 250ms ease-in-out forwards;}", 0); // Background with separate opacity document.styleSheets[0].insertRule(".overlay_window:before {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://i.imgur.com/Dz6LJNI.png') !important; opacity: 0.95; z-index: -1;}", 0); document.styleSheets[0].insertRule(".overlay_window h3 { font-size: 1.3em !important; margin: 0em !important; padding: 0em 0px 0.35em !important; border-bottom: none !important; background-color:#f8f8f8 !important; opacity: 0;}", 0); // Plays Funk sound var music = new Audio('https://files.catbox.moe/xn5afd.ogg'); music.loop = false; music.volume = 0.5; function advisorFeedbackTitlebar() { const advisorHold = document.getElementsByClassName("overlay_window_content")[0]; if(!advisorHold || advisorHold.classList.contains("done")) { return; } advisorHold.classList.add("done"); document.getElementsByClassName("overlay_window_content")[0].children[0].innerHTML = ""; if(!campaignTrail_temp.mute){ music.play(); } } const gameWindowNode = document.getElementById("game_window"); const feedbackWatcherConfig = { attributes: true, childList: true, subtree: true }; const feedbackObserver = new MutationObserver(advisorFeedbackTitlebar); feedbackObserver.observe(gameWindowNode, feedbackWatcherConfig); // Advisor feedback enhancements and animation document.styleSheets[0].insertRule(".overlay { opacity: 0 !important;}", 0); document.styleSheets[0].insertRule(".game_header { position: relative !important; z-index: 102; left: -1px !important; width: calc(100% + 2px) !important;}", 0); document.styleSheets[0].insertRule("#game_window { overflow-y: clip !important;}", 0); // Additional hullaballoo document.getElementById("inner_window_1").children[1].innerHTML = `
  • Select a year and a candidate to find out.
  • You will answer questions about your platform and positions, and also about your campaign strategy.
  • The answers will affect your popularity for better or worse, both nationally and in individual states.
  • Walk the fine line between appealing to your base and winning a majority of the votes.
  • ` document.styleSheets[0].insertRule(".campaign_trail_start_emphasis{ background-color: #b5d5ff00 !important; position: relative; z-index: 1 !important;}", 0); document.styleSheets[0].insertRule("#achwindow, #benefitwindow{ z-index: 999 !important;}", 0); document.getElementById("inner_window_1").children[3].innerHTML = `` document.styleSheets[0].insertRule("#after_button { height:14px; width:56px; z-index: 103; position: absolute; content: ''; top: 5px; left: 9px; opacity: 0; background-image: url('https://i.imgur.com/EwlkiHI.png'); display: block;}", 0); document.styleSheets[0].insertRule("#after_button:hover{opacity: 100%;}", 0); /* I could never get the buttons on some of the results pages to show up with the right spacing * This problem is endemic to ALL of NCT because of past shit coding * if you can find a fix please contact /u/astrohunch_o or astro.9407 on Discord * (This code does not currently work and if maintainers have the courage it won't be necessary) function onGameWindowFixHistorical() { const resultsTableHolder = document.getElementById("overall_details_container"); if(!resultsTableHolder || resultsTableHolder.classList.contains("done")) { return; } resultsTableHolder.classList.add("done"); document.getElementById("overall_details_container").children[2].children[5].remove() document.getElementById("overall_details_container").children[2].children[4].remove() document.getElementById("overall_details_container").children[2].children[3].style.marginBottom = "2.5em" console.log("DANXV FIX YOUR CODE") } const candidateWatcherConfig = { attributes: true, childList: true, subtree: true }; const candidateObserver = new MutationObserver(onGameWindowFixHistorical); candidateObserver.observe(gameWindowNode, candidateWatcherConfig);*/ // Further reading styling document.styleSheets[0].insertRule("#recommended_reading_box { margin-left: auto !important; margin-right: auto !important; border-width: medium 0px !important; border-style: none none double !important; width: auto !important; background-image: url('https://i.imgur.com/Dz6LJNI.png') !important; height: 27em;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box .ftab, #recommended_reading_box .ftab-active {font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif !important;background-image: url('https://i.imgur.com/XUGsLUj.png');width: 98px;height: 32px;margin-top: 0px !important;padding-top: 11px;box-sizing: border-box; cursor: pointer; user-select:none;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box .ftab-active {background-image: url('https://i.imgur.com/dI3iYWF.png') !important; cursor: default !important;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box #start.ftab {width: 99px !important; background-image: url('https://i.imgur.com/pw8EZej.png') !important;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box #start.ftab-active {width: 99px !important; background-image: url('https://i.imgur.com/bEGUimC.png') !important;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box #end.ftab {background-image: url('https://i.imgur.com/Htznkqy.png') !important;}", 0); document.styleSheets[0].insertRule("#recommended_reading_box #end.ftab-active {background-image: url('https://i.imgur.com/IlpQZVr.png') !important;}", 0); // Tab iterator functions tab0 = function() { if(document.getElementById("tab-select").children[0].classList.contains("ftab")){ document.getElementById("tab-select").children[0].classList.remove("ftab"); document.getElementById("tab-select").children[0].classList.add("ftab-active"); } for(let i = 1; i < 4; i++){ if(document.getElementById("tab-select").children[i].classList.contains("ftab-active")){ document.getElementById("tab-select").children[i].classList.remove("ftab-active"); document.getElementById("tab-select").children[i].classList.add("ftab"); } } document.getElementById("rpage0").style.display = "inline-block"; document.getElementById("rpage1").style.display = "none"; document.getElementById("rpage2").style.display = "none"; document.getElementById("rpage3").style.display = "none"; } tab1 = function() { if(document.getElementById("tab-select").children[1].classList.contains("ftab")){ document.getElementById("tab-select").children[1].classList.remove("ftab"); document.getElementById("tab-select").children[1].classList.add("ftab-active"); } for(let i = 0; i < 4; i++){ if(document.getElementById("tab-select").children[i].classList.contains("ftab-active") && i != 1){ document.getElementById("tab-select").children[i].classList.remove("ftab-active"); document.getElementById("tab-select").children[i].classList.add("ftab"); } } document.getElementById("rpage0").style.display = "none"; document.getElementById("rpage1").style.display = "inline-block"; document.getElementById("rpage2").style.display = "none"; document.getElementById("rpage3").style.display = "none"; } tab2 = function() { if(document.getElementById("tab-select").children[2].classList.contains("ftab")){ document.getElementById("tab-select").children[2].classList.remove("ftab"); document.getElementById("tab-select").children[2].classList.add("ftab-active"); } for(let i = 0; i < 4; i++){ if(document.getElementById("tab-select").children[i].classList.contains("ftab-active") && i != 2){ document.getElementById("tab-select").children[i].classList.remove("ftab-active"); document.getElementById("tab-select").children[i].classList.add("ftab"); } } document.getElementById("rpage0").style.display = "none"; document.getElementById("rpage1").style.display = "none"; document.getElementById("rpage2").style.display = "inline-block"; document.getElementById("rpage3").style.display = "none"; } tab3 = function() { if(document.getElementById("tab-select").children[3].classList.contains("ftab")){ document.getElementById("tab-select").children[3].classList.remove("ftab"); document.getElementById("tab-select").children[3].classList.add("ftab-active"); } for(let i = 0; i < 3; i++){ if(document.getElementById("tab-select").children[i].classList.contains("ftab-active")){ document.getElementById("tab-select").children[i].classList.remove("ftab-active"); document.getElementById("tab-select").children[i].classList.add("ftab"); } } document.getElementById("rpage0").style.display = "none"; document.getElementById("rpage1").style.display = "none"; document.getElementById("rpage2").style.display = "none"; document.getElementById("rpage3").style.display = "inline-block"; } // Cool banner ads in place of the bottom bar document.getElementById("bottomBar").style.display = ""; document.getElementById("bottomBar").style.backgroundColor = "#fff"; document.getElementById("bottomBar").style.backgroundSize = "0%"; document.getElementById("bottomBar").style.borderStyle = "none"; document.getElementById("bottomBar").style.padding = "0"; document.getElementById("bottomBar").style.height = "60px"; banners = ["https://i.imgur.com/hyx4HKI.png", "https://i.imgur.com/AH6jqsl.png", "https://i.imgur.com/qKCqDrV.png", "https://i.imgur.com/4oP88pj.png", "https://i.imgur.com/h6ETeSQ.png", "https://i.imgur.com/amD4L0b.png", "https://i.imgur.com/GTC5qH2.png", "https://i.imgur.com/mxzdqLF.png", "https://i.imgur.com/wdXObB9.png", "https://i.imgur.com/mE8cLa8.png", "https://i.imgur.com/vdGp1Zd.png", "https://i.imgur.com/4e3xla0.png", "https://i.imgur.com/AhrPekt.png", "https://i.imgur.com/UKV7QQG.png", "https://i.imgur.com/UccB4vA.png", "https://i.imgur.com/Xt9EoQm.png", "https://i.imgur.com/sjzAtMY.png", "https://i.imgur.com/lufx1Xa.png", "https://i.imgur.com/RoUMxvL.png", "https://i.imgur.com/t8acEHl.png", "https://i.imgur.com/RlifQHP.png", "https://i.imgur.com/2K9Geah.png", "https://i.imgur.com/0v3R16z.png", "https://i.imgur.com/teGSaZ6.png", "https://i.imgur.com/p0JrcRB.png", "https://i.imgur.com/gpH4lhz.png", "https://i.imgur.com/pwRBa91.png", "https://i.imgur.com/90aYDYE.png", "https://i.imgur.com/um8JqFH.png", "https://i.imgur.com/BB0rBG9.png", "https://i.imgur.com/z9REhg3.png", "https://i.imgur.com/dv7iStz.png"] bannerad = banners[Math.floor((Math.random() * banners.length))] document.getElementById("bottomBar").innerHTML = `` // Mute button campaignTrail_temp.mute = false; //campaignTrail_temp.mute = true; /**/$(".container")[0].style.position = "relative"; document.getElementsByClassName("menu_bar_login")[0].innerHTML = `` document.getElementById("mute_button").addEventListener("click", mute); function mute() { console.log("You just found the mute button") if(campaignTrail_temp.mute==true){ document.getElementById("mute_button").style.opacity = "0"; campaignTrail_temp.mute = false; } else{ document.getElementById("mute_button").style.opacity = "1"; campaignTrail_temp.mute = true; } }/**/ // Hide theme picker document.getElementById("theme_picker").style.display = "none"; document.styleSheets[0].insertRule(".footer h4 { display: none;}", 0); /* WARNING::: THE FOLLOWING CONTROL ELEMENTS ARE ALL CUSTOM * THEY ARE NOT CREATED USING CSS LIBRARIES * because none are available at this time :) */ // Custom buttons document.styleSheets[0].insertRule("button{font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif !important; font-size: 92.5% !important; border-radius:100vw !important; border: 1px solid #5d5d5d !important; background-repeat: no-repeat !important; background-position: top, top center, top left, top right, center !important; padding: 0.1em 1em !important; background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 9px), linear-gradient(hsl(0 0% 100% / 0.25) 9px, transparent 9px), radial-gradient( circle at 4px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#ccc, #fff);background-size: 100%, calc(100% - 5px), 2.5px 10px, 2.5px 10px, 100% !important;cursor:pointer;box-shadow:rgba(0, 0, 0, 0.5) 0px 1px 1px;}", 0); //document.styleSheets[0].insertRule("button:hover{background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 10px), linear-gradient(hsl(0 0% 100% / 0.25) 10px, transparent 10px), radial-gradient( circle at 3px 5px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 5px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#0342b9, #81DBFF);}"); document.styleSheets[0].insertRule("button:hover{background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 8px), linear-gradient(hsl(0 0% 100% / 0.25) 9px, transparent 9px), radial-gradient( circle at 4px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#999, #fff);}", 0); document.styleSheets[0].insertRule("button:active{background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 10px), linear-gradient(hsl(0 0% 100% / 0.25) 9px, transparent 9px), radial-gradient( circle at 4px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#0342b9, #AFF9FF) !important;}", 0); // Custom dropdown (with custom icon) document.styleSheets[0].insertRule("select {font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif !important; font-size: 92.5% !important; border-radius:0.21vw !important; border: 1px solid #5d5d5d !important; background-repeat: no-repeat !important; background-position: right 7px center, top, top center, top left, top right, left, left, right !important; padding: 0.1em 0.5em !important; background-image: url('https://i.imgur.com/ZvnjTkK.png'), linear-gradient(rgba(255, 255, 255, 0.85), transparent 8px), linear-gradient(rgba(255, 255, 255, 0.25) 8px, transparent 8px), radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.25) 5px, transparent 5px), radial-gradient(circle at -1px 3px, rgba(255, 255, 255, 0.25) 5px, transparent 5px), linear-gradient(rgb(204, 204, 204), rgb(255, 255, 255)), linear-gradient(#033da8, #93f2f2), linear-gradient(rgb(3, 66, 185), rgb(187, 255, 255)) !important; background-size: 5px, 100%, calc(100% - 5px), 2.5px 10px, 2.5px 10px, calc(100% - 19px), calc(100% - 18px), 18px;cursor: pointer;box-shadow:rgba(0, 0, 0, 0.5) 0px 1px 1px; appearance: none; padding-right: 32px !important;}", 0); document.styleSheets[0].insertRule("select:hover {background-image: url('https://i.imgur.com/ZvnjTkK.png'), linear-gradient(hsl(0 0% 100% / 0.85), transparent 8px), linear-gradient(hsl(0 0% 100% / 0.25) 8px, transparent 8px), radial-gradient( circle at 3px 3px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 3px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#999, #fff), linear-gradient(#033da8, #93f2f2), linear-gradient(#00318c, #BFF) !important;}", 0); document.styleSheets[0].insertRule("select:active {background-image: url('https://i.imgur.com/ZvnjTkK.png'), linear-gradient(hsl(0 0% 100% / 0.85), transparent 8px), linear-gradient(hsl(0 0% 100% / 0.25) 8px, transparent 8px), radial-gradient( circle at 3px 3px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 3px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#033da8, #93f2f2), linear-gradient(#033da8, #93f2f2), linear-gradient(#888, #fff) !important}", 0); // Emphasis buttons (including animation THIS TOOK MONTHS TO FIGURE OUT) document.styleSheets[0].insertRule("@keyframes dia-log { 0%{ opacity: 0;} 50%{ opacity: 1;} 100%{opacity: 0;}}", 0); document.styleSheets[0].insertRule("#game_start, #ok_button, #confirm_visit_button {background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 9px), linear-gradient(hsl(0 0% 100% / 0.25) 9px, transparent 9px), radial-gradient( circle at 4px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ) !important; position:relative; background-color: #fff0;}", 0); document.styleSheets[0].insertRule("#game_start:before, #ok_button:before, #confirm_visit_button:before {content: '';position: absolute;top: 0px;left: 0px;width: 100%;height: 100%; display: block;z-index: -1;background-image: linear-gradient(#0342b9, #81DBFF);border-radius: 100vw;background-repeat: no-repeat;background-position: center top, center top, left top, right top, center center;background-size: 100%, calc(100% - 5px), 2.5px 10px, 2.5px 10px, 100%;}", 0); document.styleSheets[0].insertRule("#game_start:after, #ok_button:after, #confirm_visit_button:after {content: '';position: absolute;top: 0px;left: 0px;width: 100%;height: 100%; display: block;z-index: -1;background-image: linear-gradient(#1251c8, #AFF9FF);border-radius: 100vw;background-repeat: no-repeat;background-position: center top, center top, left top, right top, center center;background-size: 100%, calc(100% - 5px), 2.5px 10px, 2.5px 10px, 100%; animation: 1s ease-in-out dia-log infinite;}", 0); document.styleSheets[0].insertRule("#game_start:hover, #ok_button:hover, #confirm_visit_button:hover {background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 9px), linear-gradient(hsl(0 0% 100% / 0.25) 9px, transparent 9px), radial-gradient( circle at 4px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), radial-gradient( circle at -1px 4px, hsl(0 0% 100% / 0.25) 5px, transparent 5px ), linear-gradient(#0342b9, #AFF9FF) !important;}", 0); // Custom radio buttons (DISABLE INCASE OF DEBUG) /**/document.styleSheets[0].insertRule("#game_window input, #theme_picker input {appearance: none;border-radius: 50%;width: 13px !important;height: 13px;border: 1px solid #5d5d5d !important;position: relative;top: 2px;left: 0.5em;margin-right: 0.75em;cursor: pointer;box-shadow: 0px 1px 2px #00000080;background-repeat: no-repeat;background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 5px), radial-gradient(circle at 50% 0px, hsl(0 0% 100% / 0.5) 4px, transparent 5px), linear-gradient(#999, #E9E9E9 45%, #FFFFFF 95%);}", 0); document.styleSheets[0].insertRule("input.game_answers {margin-right: 1.2em !important;}", 0); document.styleSheets[0].insertRule("#game_window input:hover, #theme_picker input:hover {background-image: linear-gradient(hsl(0 0% 100% / 0.85), transparent 5px), radial-gradient(circle at 50% 0px, hsl(0 0% 100% / 0.5) 4px, transparent 5px), linear-gradient(#999, #C9C9C9 45%, #FFFFFF 95%) !important;}", 0); document.styleSheets[0].insertRule("#game_window input:checked, #theme_picker input:checked {background-image: radial-gradient(circle at 50% 5px, #000 1px, transparent 2.5px), linear-gradient(hsl(0 0% 100% / 0.85), transparent 5px), radial-gradient(circle at 50% 0px, hsl(0 0% 100% / 0.25) 3px, transparent 4px), linear-gradient(#000080, #4395E8 45%, #D7FFFF 95%) !important;}", 0); document.styleSheets[0].insertRule("#game_window input:checked:hover, #theme_picker input:checked:hover {background-image: radial-gradient(circle at 50% 5px, #000 1px, transparent 2.5px), linear-gradient(hsl(0 0% 100% / 0.85), transparent 5px), radial-gradient(circle at 50% 0px, hsl(0 0% 100% / 0.25) 3px, transparent 4px), linear-gradient(#000080, #3B83CC 45%, #D7FFFF 95%) !important;}", 0);/**/ // Tooltips (UNUSED CODE) /*document.styleSheets[0].insertRule(".inner_window_question h3 .aquatooltip{border-bottom: 1px dotted #000;}", 0); document.styleSheets[0].insertRule(".aquatooltip{position: relative; display: inline-block; cursor: default;}", 0); document.styleSheets[0].insertRule(".aquatooltip .aquatooltiptext {white-space: nowrap; background: 0; color: black; text-align: center; padding: 1px 3px; position: absolute; z-index: 500; margin-top: 15px; opacity: 0; border: 0; pointer-events: none; font-size: 11px !important; line-height: 1.5em !important; font-weight: normal !important; font-style: normal !important;box-shadow: rgba(0, 0, 0, 0.7) 0px 3px 8px; transition: opacity 1s;}", 0); document.styleSheets[0].insertRule(".aquatooltip .aquatooltiptext:before {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #FFFFBF; opacity: 0.95; z-index: -1;}", 0); document.styleSheets[0].insertRule(".aquatooltip:hover .aquatooltiptext {opacity: 1; transition: opacity 0s 0.5s;}", 0); // Tooltipify function tooltipify = function(e) { let rect = e.target.getBoundingClientRect(); let x = e.clientX - rect.left; let y = e.clientY - rect.top; setTimeout(() => { document.querySelector(".aquatooltip").children[0].style.top=y+'px'; document.querySelector(".aquatooltip").children[0].style.left=x+'px'; }, 499); }*/ // TOOLTIP TEXT // TEXTTOOLTIP // Question count selector // Accessing the full 31 questions can make some achievements easier bhToggle = function() { if (document.getElementById("difficulty_level") && !document.getElementById("bh_select")){ let bhOptions = [["25 (Best)", 25], ["31", 31]]; let dd = document.createElement("select"); dd.id = "bh_select"; for(let i = 0; i < bhOptions.length; i++){ let oo = document.createElement("option"); oo.text = bhOptions[i][0]; if(bhOptions[i][0] == "25 (Best)"){ oo.selected = true; } oo.value = bhOptions[i][1]; dd.options.add(oo); } let ff = document.createElement("form"); ff.name = "bh_select"; let h3 = document.createElement("h3"); h3.textContent = "Select the number of questions:"; ff.appendChild(h3); ff.appendChild(dd); document.getElementById("difficulty_level").appendChild(ff); dd.addEventListener("change", function () { campaignTrail_temp.global_parameter_json[0].fields.question_count = this.value; }) } else { return; } } // Styling document.styleSheets[0].insertRule("#difficulty_level form {display: inline-block !important; padding: 0 1em !important;", 0); document.styleSheets[0].insertRule("#difficulty_level form p {margin: 0 !important;", 0); // Observer code const diffWatcherConfig = { attributes: true, childList: true, subtree: true }; const diffObserver = new MutationObserver(bhToggle); diffObserver.observe(gameWindowNode, diffWatcherConfig); // Achievements campaignTrail_temp.achievements = { "Deja Vu" : { "image" : "https://i.imgur.com/0nLdcOF.png", "description" : "Get the canon 2000 result as either candidate.", "cannotBeCheated" : true }, "Split Decision" : { "image" : "https://i.imgur.com/UFi4GjA.png", "description" : "As either candidate, tie the Electoral College and force Congress to pick the next president.", "cannotBeCheated" : true }, "I Am My Own Man" : { "image" : "https://i.imgur.com/9gH7163.png", "description" : "As Al Gore, win in a landslide without attacking Rudy Giuliani.", "cannotBeCheated" : true }, "Don't Be Had By A Chad" : { "image" : "https://i.imgur.com/1V8yGV3.png", "description" : "As Al Gore, win without Florida.", "cannotBeCheated" : true }, "Son Of The New South" : { "image" : "https://i.imgur.com/FootDd5.png", "description" : "As Al Gore, match or exceed Bill Clinton's performance in the South.", "cannotBeCheated" : true }, "Vacation To The Tropics" : { "image" : "https://i.imgur.com/Mex62fp.png", "description" : "As Al Gore, meet Bill's friends.", "cannotBeCheated" : true }, "Omaha Steaks" : { "image" : "https://i.imgur.com/MiKcNzi.png", "description" : "As Al Gore, win while personally offending a TV star.", "cannotBeCheated" : true }, "Never Forget" : { "image" : "https://i.imgur.com/WPxMJXM.png", "description" : "As Rudy Giuliani, win while talking about 9/11 and Bin Laden at every opportunity.", "cannotBeCheated" : true }, "Jesusland" : { "image" : "https://i.imgur.com/BFuOz9K.png", "description" : "As Rudy Giuliani, win with Rick Santorum as your running mate.", "cannotBeCheated" : true }, "Republican Camelot" : { "image" : "https://i.imgur.com/j3qJFHs.png", "description" : "As Rudy Giuliani, match or exceed Jack Kennedy's electoral vote count with J.C. Watts as your running mate.", "cannotBeCheated" : true }, "This One's For Shrub" : { "image" : "https://i.imgur.com/9Kt7m4v.png", "description" : "As Rudy Giuliani, win while flipping only Florida.", "cannotBeCheated" : true }, "Not Because It Is Easy" : { "image" : "https://i.imgur.com/5tVQoW1.png", "description" : "As Rudy Giuliani, win on impossible difficulty.", "cannotBeCheated" : true } } // Final, necessary additions campaignTrail_temp.modBoxTheme = { "header_color": "#e4e4e4", "header_text_color": "#000000", "description_text_color": "#000000", "description_background_color": "#ffffff", "main_color": "#e4e4e4", "secondary_color": "#4169aa", "ui_text_color": "#ffffff" } campaignTrail_temp.credits = "/u/astrohunch_o,
    with /u/StockdaleforTCT and /u/neo1013.

    🐰 QUESTIONS RANDOMIZED WITH BUNNYHOP" HistHexcolour=["#235DBA","#BC2323","#1C9573","#6D6282"]; HistName=[" Al Gore"," Rudy Giuliani"," Ralph Nader/Others"," Roy Moore"]; HistEV=["343","195","0","0"]; HistPV=["60,124,647","56,385,154","1,664,971","1,076,320"]; HistPVP=["50.4%","47.3%","1.4%","0.9%"]; RecReading = true